#!/bin/bash

# commander will send command to displayer for execute
# Suggest xdotool installed

outpp="/tmp/lzx_displayer.pipe"

[ -p "$outpp" ] && echo "Displayer not ready, quit!"  && exit 1

while [ 1 ]
do
  echo "CMD>"
  read line <&0
  echo "$line" >$outpp
done

